# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Wael Nasreddine <gandalf@siemens-mobiles.org>

pkgname=perl-term-read-password
pkgver=0.11
pkgrel=13
pkgdesc="lets you ask the user for a password without echoing"
arch=('any')
license=('GPL' 'PerlArtistic')
depends=('perl')
url="https://search.cpan.org/dist/Term-ReadPassword"
source=(https://cpan.org/modules/by-module/Term/Term-ReadPassword-$pkgver.tar.gz)
sha256sums=('e1a866345b35f9ffef7d0037e13d6d4cb280310089f98c20713880bc70fb4323')

build() {
  cd "$srcdir"/Term-ReadPassword-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Term-ReadPassword-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
